home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: freenet.toronto.on.ca!bh332
- From: bh332@freenet.toronto.on.ca (Karim Ladha)
- Subject: [Q]Casting from struct->NULL.
- Message-ID: <DKnDws.FG3.0.sheppard@torfree.net>
- Sender: bh332@torfree.net (Karim Ladha)
- Reply-To: bh332@freenet.toronto.on.ca (Karim Ladha)
- Organization: Toronto Free-Net Inc., Toronto, Ontario, Canada
- Date: Thu, 4 Jan 1996 08:22:04 GMT
-
-
-
- Re: Casting.
-
- How is it possible to cast from a structure to NULL or something
- equivalent? Currently, I have a function which either returns a
- structure of type X; pointer, if success or 0L if fail. However,
- trying to return 0L produces, "... Cannot cast from tagStruct
- to long..." If you know of a solution, post. Greatly appreciated...
-
- Thank You,
- Karim A.Ladha - BH332@TorFree.Net
-
- PS: Using BC++ v4.0 for Windows(tm) - DOS Application.
- --
-
-